Skip to content

feat(access): add guest chat ACL#235

Merged
sheepbox8646 merged 7 commits into
mainfrom
feat/chat-access-acl
Mar 14, 2026
Merged

feat(access): add guest chat ACL#235
sheepbox8646 merged 7 commits into
mainfrom
feat/chat-access-acl

Conversation

@HoneyBBQ

Copy link
Copy Markdown
Collaborator

Summary

  • unify bot chat access around owner and guest ACL
  • add searchable access controls for allow guest, whitelist, and blacklist
  • normalize Feishu identities to stable open_id records and remove bot member sharing

Test plan

  • go test ./...
  • pnpm --filter @memoh/web exec vue-tsc --noEmit
  • verified local dev DB migration for removing bot_members

@HoneyBBQ HoneyBBQ marked this pull request as draft March 12, 2026 15:26
@HoneyBBQ HoneyBBQ requested review from chen-ran and sheepbox8646 and removed request for sheepbox8646 March 12, 2026 16:23
@HoneyBBQ HoneyBBQ marked this pull request as ready for review March 12, 2026 16:23
@HoneyBBQ HoneyBBQ marked this pull request as draft March 13, 2026 08:35
@HoneyBBQ HoneyBBQ force-pushed the feat/chat-access-acl branch from 0142e8e to f13c7cd Compare March 14, 2026 07:40
Unify bot chat permissions around owner and guest ACL so public access, whitelist, and blacklist share a single model. Remove unused sharing paths, add searchable platform identity controls, and normalize Feishu identities to stable open_id records.
Include the post-commit formatting changes applied to the access control UI so the branch stays clean and the PR reflects the final rendered layout.
Fix the init down migration ordering for legacy bot member and preauth tables, and clean up the new ACL code so migrate and golangci-lint pass on CI.
Ensure the init down migration removes bot_members and bot_preauth_keys before dropping bots so full rollback succeeds after the ACL refactor.
Support channel-, conversation-, and thread-scoped ACL rules while keeping allow_guest, whitelist, and blacklist compatible. Also expose observed conversation candidates and normalize channel identity rules to their own platform.
@HoneyBBQ HoneyBBQ force-pushed the feat/chat-access-acl branch from 9d59f23 to a470a6f Compare March 14, 2026 07:48
- Remove unused receivers and parameters in fakeRows/Service methods
- Delete unused makeNoRow helper and toParticipantFields function
- Fix gci/gofumpt formatting
@sheepbox8646 sheepbox8646 marked this pull request as ready for review March 14, 2026 09:15
@sheepbox8646 sheepbox8646 merged commit 839e63a into main Mar 14, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants